package com.lauor.test.entity;

import com.lauor.smpedr.core.anno.*;
import lombok.Getter;
import lombok.Setter;

import java.sql.Time;
import java.util.Date;

@Table(name = "user")
@Getter
@Setter
public class User {
    /**number type*/
    @Id(updateIgnore = true, autoIncrement = true)
    private Integer id;//mysql type: int
    private Long asset;//mysql type: bigint
    @FieldName("job_number")
    private Integer jobNumber;//mysql type: mediumint
    private Short height;//mysql type: smallint
    @FieldName("is_del")
    private Byte isDel;//mysql type: tinyint

    private Float vision;//mysql type: float
    private Double weight;//mysql type: double
    /**time type*/
    @FieldName(value = "birth_date")
    private Date birthDate;//mysql type: date
    @FieldName("birth_time")
    private Time birthTime;//mysql type: time
    @FieldName("create_time")
    private Date createTime;//mysql type: datetime
    @FieldName("last_time")
    @SqlIgnore
    private Date lastTime;//mysql type: timestamp
    /**string type*/
    private String phone;//mysql type: char(11)
    private String name;//mysql type: varchar(50)
    private String intro;//mysql type: tinytext
    @FieldName("icon_img")//mysql type: blob
    private byte[] iconImg;
}